package com.lovo.mapper;

import com.lovo.bean.SysCommodity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lovo
 * @since 2022-09-17
 */
@Mapper
public interface SysCommodityMapper extends BaseMapper<SysCommodity> {

    @Select("select DISTINCT(p_type) from sys_commodity group by p_type")
    public Set<String> findAllType();


}
